<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php if(count($rows) > 0){ ?>
<div class="module">
    <div class="oModule">
        <div class="iModule">
            <div class="title"><?php echo lang('category'); ?></div>
            <div class="listMD">
                <!--LOOP-->
                <?php foreach($rows as $row){ ?>
                <div>
                    <a class="vtip" href="<?php echo base_url(); ?>ads/section/<?php echo $row->adsSection; ?>/category/<?php echo $row->adsCategory; ?>/detail/<?php echo $row->adsID; ?>/<?php echo url($row->adsTitle); ?>" title="<?php echo tip(sub(strip_tags($row->adsDetail), 50)); ?>"><?php echo sub($row->adsTitle, 30); ?></a>
                    <span class="green <?php if((time() - (int)$row->adsPostDate) <= (NEW_TIME*60)){echo 'new';} ?>"><i>(<?php echo $row->adsView; ?>)</i></span>
                </div>
                <?php } ?>
                <!--LOOP-->
            </div>
        </div>
    </div>
</div>
<?php } ?>